package com.myspace.server.user.service.impl;

import com.myspace.server.user.entity.User;
import com.myspace.server.user.mapper.UserMapper;
import com.myspace.server.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    private UserMapper userMapper;

    @Autowired
    public UserServiceImpl(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    public User getByPrimaryKey(Long uid) {
        return userMapper.selectById(uid);
    }

}
